package com.yh;

import com.yh.license.HardwareInfoUtils;
import com.yh.license.VerificationType;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SmartLinksApplication {
    public static void main(String[] args) {
        // 如果不需要物理机验证请注释掉
        boolean start = HardwareInfoUtils.startCheck(VerificationType.DISK);
        if (!start) {
            throw new RuntimeException("违反设备协议，启动失败！");
        }
        SpringApplication.run(SmartLinksApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  服务启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " _____   _   _   _____   _   __   _   _____   _____   _____  \n" +
                "|  _  \\ | | | | /  ___/ | | |  \\ | | | ____| /  ___/ /  ___/ \n" +
                "| |_| | | | | | | |___  | | |   \\| | | |__   | |___  | |___  \n" +
                "|  _  { | | | | \\___  \\ | | | |\\   | |  __|  \\___  \\ \\___  \\ \n" +
                "| |_| | | |_| |  ___| | | | | | \\  | | |___   ___| |  ___| | \n" +
                "|_____/ \\_____/ /_____/ |_| |_|  \\_| |_____| /_____/ /_____/ ");
    }
}
